﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Stage
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Stage</h2>

        <script src="/dlr/dlr.js" type="text/javascript"></script>

<script id="foo" type="application/xml+xaml" src="/SpaceBoard.xaml" width="550" height="550">
</script>

<br />
<input type="button" id="moveForward" value="Move" />
<br />
<input type="button" id="turnLeft" value="Turn Left" />

<script class="foo" type="text/python">
    import System
    from System.Windows import DependencyObject
    from System.Windows.Controls import Canvas

    def MoveForward(s, e):
        me.fly.Begin()
    
    def Turn(s, e):
        me.shipTransform.Angle = 270

    document.moveForward.AttachEvent('onclick', System.EventHandler[System.Windows.Browser.HtmlEventArgs](MoveForward))
    document.turnLeft.AttachEvent('onclick', System.EventHandler[System.Windows.Browser.HtmlEventArgs](Turn))

</script>


</asp:Content>
